<?php

namespace Biz\model\brandRights;

use Biz\pockets\constInterface\SourceRightsInterface;
use Doraemon\pockets\datebase\BaseDbModel;

class BrandRightsSource extends BaseDbModel implements SourceRightsInterface
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'brand_rights_source';

    //权益状态
    const STATUS_ON = BaseDbModel::STATUS_NORMAL;
    const STATUS_OFF = 0;
    const STATUS_DELETE = BaseDbModel::STATUS_DELETE;
    const STATUS_ARR = [
        self::STATUS_NORMAL => "启用",
        self::STATUS_OFF => "停用",
        //self::STATUS_DELETE => "删除",
    ];

    //权益类型
    const RIGHTS_TYPE_OPEN = 1;//开关型（是否有该权益）
    const RIGHTS_TYPE_LIMIT_NUM = 2;//消耗型
    const RIGHTS_TYPE_OTHER = 3;//其他
    const RIGHTS_TYPE_NUM = 4;//数量型

    //权益类型
    const RIGHTS_TYPE_ARR = [
        self::RIGHTS_TYPE_OPEN => "功能型",
        self::RIGHTS_TYPE_LIMIT_NUM => "消耗型",
        self::RIGHTS_TYPE_NUM => "数量型",
        self::RIGHTS_TYPE_OTHER => "其他",
    ];



    //权益分类1:普通 2:活动 3:组合 4:其他
    const TYPE_NORMAL = 1;
    const TYPE_ACT = 2;
    const TYPE_COMBINATION = 3;
    const TYPE_OTHER = 4;

    //适用业务
    const BUSINESS_SCENE_BRAND = 1;
    const FIT_BUSINESS_SCENES = [
        self::BUSINESS_SCENE_BRAND => '品牌',
    ];

    //品牌权益运营分类
    const RIGHTS_GROUPS_HOME_PAGE_DEC = 1;
    const RIGHTS_GROUPS_PRODUCT_UPLOAD = 2;
    const RIGHTS_GROUPS_CONTENT_MGR = 3;
    const RIGHTS_GROUPS_DATA_CENTER = 4;
    const RIGHTS_GROUPS_MATERIAL_CENTER = 5;
    const RIGHTS_GROUPS_BRAND_TAG = 6;
    const RIGHTS_GROUPS_PRODUCT_CARD = 7;
    const RIGHTS_GROUPS_BRAND_CARD = 8;
    const RIGHTS_GROUPS_SEARCH = 9;
    const RIGHTS_GROUPS_COMMENT = 10;
    const RIGHTS_GROUPS_BRAND_AREA = 11;
    const RIGHTS_GROUPS_FLOW_SUPPORT = 12;
    const RIGHTS_GROUPS_BLIND_BOX = 13;
    const RIGHTS_GROUPS_GOODS_TEST = 14;
    const RIGHTS_GROUPS_NEW_PRODUCT_EXPRESS = 15;
    const RIGHTS_GROUPS_GOODS_TOPIC = 16;
    const RIGHTS_GROUPS_WECHAT_PUB = 17;
    const RIGHTS_GROUPS_OP_GUIDE = 18;
    const RIGHTS_GROUPS_BRAND_INDEX = 19;
    const RIGHTS_GROUPS_BRAND_INDEX_ = 20;
    const RIGHTS_GROUPS_UPGRADE_SYSTEM = 21;
    const RIGHTS_GROUPS_MIXED_PACKAGE = 22;
    const RIGHTS_GROUPS_GOODS = 23;

    //运营分类MAP
    const RIGHTS_GROUPS = [
        self::RIGHTS_GROUPS_HOME_PAGE_DEC => '品牌主页装修',
        self::RIGHTS_GROUPS_PRODUCT_UPLOAD => '商品上传',
        self::RIGHTS_GROUPS_CONTENT_MGR => '口碑内容管理',
        self::RIGHTS_GROUPS_DATA_CENTER => '数据中心',
        self::RIGHTS_GROUPS_MATERIAL_CENTER => '素材中心',
        self::RIGHTS_GROUPS_BRAND_TAG => '品牌标签',
        self::RIGHTS_GROUPS_PRODUCT_CARD => '商品卡片',
        self::RIGHTS_GROUPS_BRAND_CARD => '品牌卡片',
        self::RIGHTS_GROUPS_SEARCH => '搜索',
        self::RIGHTS_GROUPS_COMMENT => '评论',
        self::RIGHTS_GROUPS_BRAND_AREA => '品牌专区',
        self::RIGHTS_GROUPS_FLOW_SUPPORT => '流量扶持',
        self::RIGHTS_GROUPS_BLIND_BOX => '超级盲盒',
        self::RIGHTS_GROUPS_GOODS_TEST => '好物轻测',
        self::RIGHTS_GROUPS_NEW_PRODUCT_EXPRESS => '新品速递',
        self::RIGHTS_GROUPS_GOODS_TOPIC => '好物专题',
        self::RIGHTS_GROUPS_WECHAT_PUB => '微信推广',
        self::RIGHTS_GROUPS_OP_GUIDE => '运营指导',
        self::RIGHTS_GROUPS_BRAND_INDEX => '品牌指数',
        self::RIGHTS_GROUPS_BRAND_INDEX_ => '品牌指数身份加分',
        self::RIGHTS_GROUPS_UPGRADE_SYSTEM => '升级体系',
        self::RIGHTS_GROUPS_MIXED_PACKAGE => '混合套餐',
        self::RIGHTS_GROUPS_GOODS => '商品库',
    ];

    use brandRightsBasicTrait;
}